﻿namespace homewizard
{
    using System;
    using System.IO;
    using System.ServiceModel;
    using System.ServiceModel.Web;

    [ServiceContract]
    public interface IHomewizardservice
    {
        #region [Feedback,Ideas,Tasks,Tips,verifyPromoCode]
        [WebGet(ResponseFormat=WebMessageFormat.Json, UriTemplate="getFeedBack/{feedback}"), OperationContract]
        Stream getFeedBack(string feedback);
        [OperationContract, WebInvoke(Method="POST", ResponseFormat=WebMessageFormat.Json, RequestFormat=WebMessageFormat.Json, BodyStyle=WebMessageBodyStyle.Bare, UriTemplate="getIdeas")]
        Stream getIdeas(Stream myfile);
        [WebInvoke(Method="POST", ResponseFormat=WebMessageFormat.Json, RequestFormat=WebMessageFormat.Json, BodyStyle=WebMessageBodyStyle.Bare, UriTemplate="getRoutineTask"), OperationContract]
        Stream getRoutineTask(Stream myfile);
        [WebInvoke(Method="POST", ResponseFormat=WebMessageFormat.Json, RequestFormat=WebMessageFormat.Json, BodyStyle=WebMessageBodyStyle.Bare, UriTemplate="getTips"), OperationContract]
        Stream getTips(Stream myfile);
        [WebInvoke(Method="POST", ResponseFormat=WebMessageFormat.Json, RequestFormat=WebMessageFormat.Json, BodyStyle=WebMessageBodyStyle.Bare, UriTemplate="verifyPromoCode"), OperationContract]
        Stream verifyPromoCode(Stream myfile);
        #endregion

        #region [Android App Functions]
        [OperationContract, WebInvoke(Method = "POST", ResponseFormat = WebMessageFormat.Json, RequestFormat = WebMessageFormat.Json, BodyStyle = WebMessageBodyStyle.Bare, UriTemplate = "getApp_Initial_Setup")]
        Stream getApp_Initial_Setup(Stream myfile);
      
        [OperationContract, WebInvoke(Method = "POST", ResponseFormat = WebMessageFormat.Json, RequestFormat = WebMessageFormat.Json, BodyStyle = WebMessageBodyStyle.Bare, UriTemplate = "getApp_Reopen")]
        Stream getApp_Reopen(Stream myfile);
        #endregion
    }
}



